<template>
    <div>
        <h5>{{name}}</h5>
        <span>{{phone}}</span>
        <span>{{city}}</span>
        <span>{{detail}}</span>
        <button @click="edit">修改</button>
    </div>
</template>

<script>
export default {
    props:['name','phone','city','detail','id'],
    methods:{
        edit(){
            //修改
            this.$router.push({path:'/addAddress',query:{id:this.id}});
        }
    }
}
</script>